//
//  LoginViewController.h
//  IOTCamViewer
//
//  Created by huangzhixiong on 14-10-25.
//  Copyright (c) 2014年 TUTK. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "MyCamera.h"

#import "AVIOCTRLDEFuserdefineds.h"
/*
 #import "RegisterViewController.h"
 #import "ResetPasswordViewController.h"
 */

#define ZOOM_MAX_SCALE 5.0
#define ZOOM_MIN_SCALE 1.0



@interface VisitingMessageViewController : UIViewController<UIScrollViewDelegate> {
    
    
    
    BOOL isLoginOver;
    BOOL isMove;
    BOOL isHideView;
    
    SystemSoundID shake_sound_male_id;
    
    NSTimer *showTimer;
    NSInteger showTimes;
}

@property (strong, nonatomic) IBOutlet UITextField *accountTextField;
@property (strong, nonatomic) IBOutlet UITextField *passwordTextField;
@property (strong, nonatomic) IBOutlet UISwitch *savePasswordSwitch;
@property (strong, nonatomic) IBOutlet UIButton *loginButton;
@property (strong, nonatomic) IBOutlet UIButton *registerButton;
@property (strong, nonatomic) IBOutlet UIButton *resetPasswordButton;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UIScrollView *picnScrollView;
@property (strong, nonatomic) IBOutlet UIImageView *picnImageView;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *loadingImgActivityIndicatorView;

@property (strong, nonatomic) IBOutlet UILabel *uidLab;
@property (strong, nonatomic) IBOutlet UILabel *uidLabel;
@property (strong, nonatomic) IBOutlet UILabel *aliasLab;
@property (strong, nonatomic) IBOutlet UILabel *aliasLabel;
@property (strong, nonatomic) IBOutlet UILabel *typeLab;
@property (strong, nonatomic) IBOutlet UILabel *typeLabel;
@property (strong, nonatomic) IBOutlet UILabel *devidLab;
@property (strong, nonatomic) IBOutlet UILabel *devidLabel;
@property (strong, nonatomic) IBOutlet UILabel *devTimeLab;
@property (strong, nonatomic) IBOutlet UILabel *devTimeLabel;

@property (strong, nonatomic) IBOutlet UILabel *ignoreLabel;
@property (strong, nonatomic) IBOutlet UIButton *ignoreButton;
@property (strong, nonatomic) IBOutlet UILabel *answeringLabel;
@property (strong, nonatomic) IBOutlet UIButton *answeringButton;

@property Boolean isRunningConnectingThread;
@property (nonatomic, strong) NSThread *connectThread;
@property (nonatomic, strong) NSConditionLock *connectThreadLock;

@property Boolean isRunningStartingThread;
@property (nonatomic, strong) NSThread *startThread;
@property (nonatomic, strong) NSConditionLock *startThreadLock;

@property (nonatomic, copy) NSString *uidUserInfo;
@property (nonatomic, assign) NSInteger typeUserInfo;
@property (nonatomic, assign) NSUInteger timeUserInfo;
@property (nonatomic, copy) NSString *picnUserInfo;
@property (nonatomic, copy) NSString *aliasUserInfo;
@property (nonatomic, copy) NSString *devidUserInfo;

- (void)loopConnect;
- (void)disLoopConnect;

- (void)loopStart;
- (void)disLoopStart;


- (IBAction)selectLogin:(id)sender;
- (IBAction)selectRegister:(id)sender;
- (IBAction)selectResetPassword:(id)sender;
- (IBAction)selectIgnore:(id)sender;
- (IBAction)selectAnswering:(id)sender;

- (IBAction)selectSavePassword:(id)sender;

@end
